package com.example.kuaizu.newfunction;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * @author xiaokai
 * @version 1.0
 */
@Component
@Configuration()
public class EmailProperties {

    /**
     * 邮件的发送方
     */
    @Value("${spring.mail.username}")
    String from;

    /**
     * 邮件的接收方
     */
    String to;

    public String getFrom() {
        return from;
    }

    public void setFrom(String from) {
        this.from = from;
    }

    public String getTo() {
        return to;
    }

    public void setTo(String to) {
        this.to = to;
    }

}